package IntegrationTest;
import junit.framework.TestCase;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import entities.AcdcProgram;
import entities.Course;
import entities.Section;
import io.ProgramInput;


public class Test_ProgramInput_ProgramInputProcessor_Course_AcdcProgram extends TestCase {
	public void setUp() throws FileNotFoundException {
		//try {
			ProgramInput.programInput = new FileInputStream("ProgramInputTest.txt");
		//} catch(Exception e) {
		//	System.out.println("CourseInputTest.txt cannot be open. The test is not performed!");
		//}
	}
	
	public void test() {
		ProgramInput.programDataFromFile();
		assertEquals(5,AcdcProgram.getAllPrograms().length);
	}
	
	public void tearDown() {
		Section.clear();
		Course.clear();
	}
}
